package Helpers;

import javax.servlet.http.HttpSession;

import Modele.Billet;
import Modele.Panier;

public class Helpers 
{
	public static Panier getPanier ( HttpSession session )
	{
		Panier panier = (Panier)session.getAttribute("panier");
		
		if ( panier == null )
		{
			panier = new Panier ( );
			session.setAttribute ( "panier", panier );
		}
		
		return panier;
	}
	
	public static void verifierExpirationPanier ( Panier p )
	{
		for ( Billet b : p.getBillets())
			b.getStatus();
	}
}
